You have just copied the table from Main into GuestList. It has all the same properties, including the bindings. The WOStrings in the table are still bound to instance variables of currentGuest. Since currentGuest is a component variable defined in Main, it isn't accessible from GuestList. Therefore, you need to declare it here.
When you wrap a repetition around a table row in this way, the WORepetition symbol doesn't appear in the table. Instead, the row appears in blue. For additional examples of using repetitions, see Chapter 3, Creating a WebObjects Database Application
.
By using the name currentGuest for the item attribute, you are taking advantage of the fact that the strings in your table are already bound to the fields of currentGuest.
You now have finished implementing the repetition. When the table is generated, it will have one row for each item in the allGuests array.
Note: In this case, you don't have to rebuild or relaunch your application in order to test it. Building is required only when you have made changes to Java or Objective-C code. If you modify a component or WebScript code only, the changes take effect even if the application is already running.